package com.hanter.android.radwidget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.hanter.android.radwidget.statusbar.StatusBarHelper;

/**
 * StatusBar Placeholder View
 */
public class StatusBarView extends View {

    private static int sStatusBarHeight;

    public StatusBarView(Context context) {
        super(context);
        init(null, 0);
    }

    public StatusBarView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(attrs, 0);
    }

    public StatusBarView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        init(attrs, defStyle);
    }

    private void init(AttributeSet attrs, int defStyle) {

    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        setMeasuredDimension(widthMeasureSpec, StatusBarHelper.getCompatStatusBarHeight(getContext()));
    }

}
